package com.waimai.app.qa.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * Mail Authenticator
 * @author AiHui
 */
public class MailAuthenticator extends Authenticator {
	
	private String userName;
	private String passWord;

	public MailAuthenticator(String username, String password) {
		userName = username;
		passWord = password;
	}

	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(userName, passWord);
	}
}
